package com.aaa.demo08;

/**
 * @author ${崔灿}
 * @date 2022/11/01 16:37
 **/

public class Test {
    public static void main(String[] args) {
        BankCard bankCard = new BankCard();
        Boy boy = new Boy(bankCard);
        boy.setName("汪东正");
        Girl girl = new Girl(bankCard);
        girl.setName("罗丽莉");
        boy.start();
        girl.start();
    }
}
